﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CI.Models
{
    public class Owner:IOwner
    {
        public int ID { get; private set; }
        public string Name { get; private set; }
        public OwnerType Type { get; private set; }

        public static Owner Create(string name)
        {
            return Create(name, OwnerType.Character);
        }

        public static Owner Create(string name, OwnerType type)
        {
            return Create(-1, name, type);
        }

        public static Owner Create(int id, string name, OwnerType type)
        {
            if (name == null) throw new ArgumentNullException("name");

            return new Owner() {ID = id, Name = name, Type = type};
        }
        
    }
}
